package uto.phone.flash.wind.app

import android.os.Bundle
import uto.phone.flash.wind.R
import uto.phone.flash.wind.base.IActivity
import uto.phone.flash.wind.base.fullScreen
import kotlinx.android.synthetic.main.activity_next_2.*

class Next2Activity: IActivity() {

    override fun layoutRes(): Int {
        fullScreen()
        return R.layout.activity_next_2
    }

    override fun initLayout(bundle: Bundle?) {
        ivImage.setImageResource(intent.getIntExtra("image",R.mipmap.bg_1))
        tvPhone.text = intent.getStringExtra("phone") ?: "185-5448-1233"
    }

    override fun initListener() {
        ivBack.setOnClickListener { finish() }
    }
}